#ifndef BS8112A3_H
#define BS8112A3_H

#include "stdint.h"

#define BS8112A3_I2C_ADDR 0x50
#define BS8112A3_ADDR_WRITE 0xA0
#define BS8112A3_ADDR_READ  0xA1
#define BS8112A3_SETTING_REG 0xB0
#define BS8112A3_STATUS1_REG 0x08
#define BS8112A3_STATUS2_REG 0x09

void bs8112a3_init(void);
uint8_t bs8112a3_get_key_num(void);
void bs8112a3_write_option(uint8_t *options);
void bs8112a3_read_key_status(void) ;

extern uint8_t key_state[2]; // KeyStatus0��KeyStatus1
#endif
